const http = uni.$u.http;

// 设备信息 /api/stb.device/deviceInfo
export const apiDeviceInfo = (data) => http.get('/stb.device/deviceInfo', data)

// 已绑定设备列表 /api/stb.device/deviceList
export const apiDeviceList = (data) => http.get('/stb.device/deviceList', data)

// 保管设备列表 /api/stb.device/storeDeviceList
export const apiStoreDeviceList = (data) => http.get('/stb.device/storeDeviceList', data)

// 批量修改保管员 /api/stb.device/batchChangeStorekeeper
export const apiBatchChange = (data) => http.get('/stb.device/batchChangeStorekeeper', data)

// 添加绑定设备 /api/stb.device/addBindDevice
export const apiAddBindDevice = (params = {}) => http.post('/stb.device/addBindDevice', params)

// 解除绑定设备 /api/stb.device/deleteBindDevice
export const apiDeleteBindDevice = (params = {}) => http.post('/stb.device/deleteBindDevice', params)

// 编辑设备信息 /api/stb.device/deleteBindDevice
export const apiDeviceEdit = (params = {}) => http.post('/stb.device/deviceEdit', params)